<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<form
		action="
        <c:choose>
    <c:when test="${sessionScope.gopay_webtest_URL_Name=='自定义'}">
    ${sessionScope.gopay_webtest_URL.dom}
    </c:when>
    <c:otherwise>
		${sessionScope.gopay_webtest_URL.dom}${sessionScope.gopay_webtest_URL.cbrmbRemitQuery}
		    </c:otherwise>
    </c:choose>"
		name="remitfunc" id="remitfunc" method="POST">
		<input type="hidden" id="version" name="version" value="${remitInfo.version }" size="50" />
		<input type="hidden" id="tranCode" name="tranCode" value="${remitInfo.tranCode }" size="50" />
		<input type="hidden" id="merchantID" name="merchantID" value="${remitInfo.merchantID }" size="50" />
		<input type="hidden" id="merOrderNum" name="merOrderNum" value="${remitInfo.merOrderNum }" size="50" />
		<input type="hidden" id="frontMerUrl" name="frontMerUrl" value="${remitInfo.frontMerUrl }" size="50" />
		<input type="hidden" id="backgroundMerUrl" name="backgroundMerUrl" value="${remitInfo.backgroundMerUrl }" size="50" /> 
		<input type="hidden" id="tranDateTime" name="tranDateTime" value="${remitInfo.tranDateTime }" size="50" /> 
		<input type="hidden" id="tranAmt" name="tranAmt" value="${remitInfo.tranAmt }" size="50" /> 
		<input type="hidden" id="merchantEncode" name="merchantEncode" value="${remitInfo.merchantEncode }" size="50" /> 
		<input type="hidden" id="VerficationCode" name="VerficationCode" value="${remitInfo.verficationCode}"> 
		<input type="hidden" name="signValue" id="signValue" value="${remitInfo.signValue}"> 
	</form>
	<script>
<%-- 为了防止用户登录后点击提交后退到登录页面，对document.remitfunc.submit()增加判断条件if(0==history.length) --%>

if($.browser.msie) {
	if(0==history.length)document.remitfunc.submit();
}else if($.browser.mozilla){
	if(1==history.length)document.remitfunc.submit();
}else if($.browser.opera) {
	if(1==history.length)document.remitfunc.submit();
}else{//for webkit(Safari, Chrome...)
	if(1==history.length)document.remitfunc.submit();
} 
</script> 
